// 以下是业务服务器API地址
// 本机开发时使用
var WxApiRoot = 'http://localhost:5204/wx/';
// 局域网测试使用
// var WxApiRoot = 'http://192.168.1.3:8080/wx/';
// 云平台上线时使用
// var WxApiRoot = 'https://litemall-plus.ysling.site/wx/';

module.exports = {

  // Socket链接
  WSS_SERVER_URL: 'wss://litemall-plus.ysling.site/websocket',
  // WSS_SERVER_URL: 'ws://localhost:5205/websocket',

  adminUrl: 'https://litemall-plus.ysling.site/#/login',//管理后台地址
  ShipTmplIds: 'g8tMdyhgzWlxPP-wFfbiwaSSmMO7Ga0feq71E29M8_I',//发货订阅模板id
  RefundTmplIds: 'em0NVJsdJ1emUPf3U5ScMZ4SDp4Pi0kh5kSUtix1hu4',//退款订阅模板id
  NewOrderTmplIds: 'Vhyn0wCT_H7TK3TbxHoedWO3-3f87kchHCV5blSv5EI',//新订单订阅模板id

  MessageList: WxApiRoot + 'message/list', //消息列表,
  MessageDelete: WxApiRoot + 'message/delete', //删除消息列表,

  StorageUpload: WxApiRoot + 'storage/upload', //图片上传,
  UserIndex: WxApiRoot + 'user/index', //个人页面用户相关信息
  IssueList: WxApiRoot + 'issue/list', //帮助信息

  IndexUrl: WxApiRoot + 'home/index', //首页数据接口
  AboutUrl: WxApiRoot + 'home/about', //介绍信息
  NavigateUrl: WxApiRoot + 'home/navigate', //首页跳转判断

  TimelineSubmit: WxApiRoot + 'timeline/submit',//发布日常
  TimelineList: WxApiRoot + 'timeline/timelinelist',//获取布列表
  TimelinOrderList: WxApiRoot + 'timeline/orderlist',//获取布列表
  TimeLineDelete: WxApiRoot + 'timeline/delete',//获取布列表

  RewardJoin: WxApiRoot + 'reward/join',//获取赏金详情
  RewardList: WxApiRoot + 'reward/list',//获取赏金列表
  RewardCreate: WxApiRoot + 'reward/create',//添加赏金

  CatalogList: WxApiRoot + 'catalog/index', //分类目录全部分类数据接口
  CatalogCurrent: WxApiRoot + 'catalog/current', //分类目录当前分类数据接口
  CatalogAll: WxApiRoot + 'catalog/all', //分类目录当前分类数据接口

  AuthLoginByWeixin: WxApiRoot + 'auth/login_by_weixin', //微信登录
  AuthLoginByAccount: WxApiRoot + 'auth/login', //账号登录
  AuthLogout: WxApiRoot + 'auth/logout', //账号登出
  AuthRegister: WxApiRoot + 'auth/register', //账号注册
  AuthReset: WxApiRoot + 'auth/reset', //账号密码重置
  AuthMobileCaptcha: WxApiRoot + 'auth/captcha/mobile', //手机验证码
  AuthMailCaptcha: WxApiRoot + 'auth/captcha/mail', //邮箱验证码
  AuthBindPhone: WxApiRoot + 'auth/bindPhone', //绑定微信手机号

  GoodsCount: WxApiRoot + 'goods/count', //统计商品总数
  GoodsList: WxApiRoot + 'goods/list', //获得商品列表
  GoodsCategory: WxApiRoot + 'goods/category', //获得分类数据
  GoodsDetail: WxApiRoot + 'goods/detail', //获得商品的详情
  GoodsRelated: WxApiRoot + 'goods/related', //商品详情页的关联商品（大家都在看）

  BrandList: WxApiRoot + 'brand/list', //店铺列表
  BrandDetail: WxApiRoot + 'brand/detail', //店铺详情
  BrandOrder: WxApiRoot + 'brand/order', //店铺订单
  BrandSave: WxApiRoot + 'brand/save', //创建店铺或修改店铺

  BrandGoodsList: WxApiRoot + 'brand/goods/list', //获取店铺商品列表
  BrandGoodsUpdate: WxApiRoot + 'brand/goods/update', //修改店铺商品
  BrandGoodsCreate: WxApiRoot + 'brand/goods/create', //添加店铺商品
  BrandGoodsDetail: WxApiRoot + 'brand/goods/detail', //店铺商品详情
  BrandGoodsDelete: WxApiRoot + 'brand/goods/delete', //删除店铺商品
  BrandGoodsCategory: WxApiRoot + 'brand/goods/category', //获取商品分类

  CartList: WxApiRoot + 'cart/index', //获取购物车的数据
  CartAdd: WxApiRoot + 'cart/add', // 添加商品到购物车
  CartFastAdd: WxApiRoot + 'cart/fastadd', // 立即购买商品
  CartUpdate: WxApiRoot + 'cart/update', // 更新购物车的商品
  CartDelete: WxApiRoot + 'cart/delete', // 删除购物车的商品
  CartChecked: WxApiRoot + 'cart/checked', // 选择或取消选择商品
  CartGoodsCount: WxApiRoot + 'cart/goodscount', // 获取购物车商品件数
  CartCheckout: WxApiRoot + 'cart/checkout', // 下单前信息确认

  CollectList: WxApiRoot + 'collect/list', //收藏列表
  CollectAddOrDelete: WxApiRoot + 'collect/addordelete', //添加或取消收藏

  CommentList: WxApiRoot + 'comment/list', //评论列表
  CommentCount: WxApiRoot + 'comment/count', //评论总数
  CommentPost: WxApiRoot + 'comment/post', //发表评论

  TopicList: WxApiRoot + 'topic/list', //专题列表
  TopicDetail: WxApiRoot + 'topic/detail', //专题详情
  TopicRelated: WxApiRoot + 'topic/related', //相关专题
  TopicComment: WxApiRoot + 'topic/comment', //上传专题评论


  SearchIndex: WxApiRoot + 'search/index', //搜索关键字
  SearchResult: WxApiRoot + 'search/result', //搜索结果
  SearchHelper: WxApiRoot + 'search/helper', //搜索帮助
  SearchClearHistory: WxApiRoot + 'search/clearhistory', //搜索历史清楚

  AddressList: WxApiRoot + 'address/list', //收货地址列表
  AddressDetail: WxApiRoot + 'address/detail', //收货地址详情
  AddressSave: WxApiRoot + 'address/save', //保存收货地址
  AddressDelete: WxApiRoot + 'address/delete', //保存收货地址

  ExpressChannel: WxApiRoot + 'express/channel', // 查询物流公司
  ExpressLogistics: WxApiRoot + 'express/logistics', // 查询物流插件token
  ExpressApiTrack: WxApiRoot + 'express/api-track', // 通过快递鸟查询物流

  RegionList: WxApiRoot + 'region/list', //获取区域列表

  OrderSubmit: WxApiRoot + 'order/submit', // 提交订单
  OrderPrepay: WxApiRoot + 'order/prepay', // 订单的预支付会话
  OrderList: WxApiRoot + 'order/list', //订单列表
  OrderDetail: WxApiRoot + 'order/detail', //订单详情
  OrderCancel: WxApiRoot + 'order/cancel', //取消订单
  OrderRefund: WxApiRoot + 'order/refund', //退款取消订单
  OrderDelete: WxApiRoot + 'order/delete', //删除订单
  OrderConfirm: WxApiRoot + 'order/confirm', //确认收货
  OrderGoods: WxApiRoot + 'order/goods', // 代评价商品信息
  OrderComment: WxApiRoot + 'order/comment', // 评价订单商品信息
  OrderChannel: WxApiRoot + 'order/channel', // 查询物流公司

  OrderAdminShip:WxApiRoot+'order/admin/ship',//发货
  OrderAdminRefund:WxApiRoot+'order/admin/refund',//退款

  AftersaleList: WxApiRoot + 'aftersale/list', // 售后列表
  AftersaleSubmit: WxApiRoot + 'aftersale/submit', // 提交售后申请
  AftersaleDetail: WxApiRoot + 'aftersale/detail', // 售后详情
  AftersaleRecept: WxApiRoot + 'aftersale/recept', // 售后通过
  AftersaleReject: WxApiRoot + 'aftersale/reject', // 售后拒绝
  AftersaleRefund: WxApiRoot + 'aftersale/refund', // 售后退款
  

  FeedbackAdd: WxApiRoot + 'feedback/submit', //添加反馈
  FootprintList: WxApiRoot + 'footprint/list', //足迹列表
  FootprintDelete: WxApiRoot + 'footprint/delete', //删除足迹

  GroupOnList: WxApiRoot + 'groupon/list', //团购列表
  GroupOnMy: WxApiRoot + 'groupon/my', //团购API-我的团购
  GroupOnDetail: WxApiRoot + 'groupon/detail', //团购API-详情
  GroupOnJoin: WxApiRoot + 'groupon/join', //团购API-详情

  CouponList: WxApiRoot + 'coupon/list', //优惠券列表
  CouponMyList: WxApiRoot + 'coupon/mylist', //我的优惠券列表
  CouponSelectList: WxApiRoot + 'coupon/selectlist', //当前订单可用优惠券列表
  CouponReceive: WxApiRoot + 'coupon/receive', //优惠券领取
  CouponExchange: WxApiRoot + 'coupon/exchange', //优惠券兑换

 
};